export default class Person {
    name: string
    age: number
    constructor(name: string, age: number) {
        this.age = age
        this.name = name
    }
    printInfo(msg: string) {
        console.log(`姓名:${this.name},年龄${this.age},${msg}`)
    }
}


